<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$date1="2009-03-18";
$d3=substr($date1,8,2); //日
$d2=substr($date1,5,2); //月
$d1=substr($date1,0,4); //年
echo $d3-$d2;
$tomorrow = date( "Y-m-d", mktime(0,0,0,$d2,$d3+30,$d1));

echo "</br>".$tomorrow;
echo "</br>Today is ".$abc = date("Y-m-d");
if ($date1 == $abc) echo "</br>OK";
?>
